
 
 F u n c t i o n :   c o n t r o l s ( d o m E l e m e n t O r C S S S e l e c t o r ,   t a r g e t - d o m E l e m e n t O r C S S S e l e c t o r ) 
 
 
 
 D e s c r i p t i o n :   S e t s   u p   a   c o n t r o l l i n g   r e l a t i o n s h i p   f r o m   o n e   e l e m e n t   t o   a n o t h e r ,   w h e r e   o n e   e l e m e n t   c o n t r o l s   t h e   o t h e r . 
 
 
 
 R e t u r n s :   O r i g i n a l   O b j e c t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 N o t e :   T h e   c o n t r o l s ( )   f u n c t i o n   w i l l   a u t o m a t i c a l l y   c o n f i g u r e   a   v a l i d   A R I A   c o n t r o l   r e l a t i o n s h i p   b e t w e e n   t w o   o r   m o r e   e l e m e n t s ,   e v e n   i f   t h e   t a r g e t   e l e m e n t s   d o   n o t   i n c l u d e   a n   i d .   I t   w i l l   a u t o m a t i c a l l y   m a n a g e   t h e   a r i a - c o n t r o l s   a t t r i b u t e   a c c o r d i n g l y . 
 
 
 
 E x a m p l e : 
 
 
 
 $ A . c o n t r o l s ( d o m E l e m e n t ,   d o m E l e m e n t T o C o n t r o l ) ; 
 
 
 
 $ A . c o n t r o l s ( " # c o n t r o l l i n g - e l e m e n t - i d " ,   " . e l e m e n t s - t o - c o n t r o l " ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 $ A ( d o m E l e m e n t ) . c o n t r o l s ( d o m E l e m e n t T o C o n t r o l ) ; 
 
 
 
 $ A ( " # c o n t r o l l i n g - e l e m e n t - i d " ) . c o n t r o l s ( " . e l e m e n t s - t o - c o n t r o l " ) ; 
 
 